package com.ihunanren.dao.weixin;

import java.sql.SQLException;

import com.ihunanren.dao.pojo.AppUserDO;

/**
 * @author kalman03
 */
public interface IAppUserDao {

	AppUserDO getAppUserById(long id) throws SQLException;

	AppUserDO getAppUserByNick(String nick) throws SQLException;

	AppUserDO getAppUserByEmail(String email) throws SQLException;

	AppUserDO getAppUserByPhone(String phone) throws SQLException;

	boolean insertAppUser(AppUserDO appUserDO) throws SQLException;

	boolean updateTokenById(long userId, String token) throws SQLException;
}
